package com.hyb.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *  交往记录信息
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_record")
@ApiModel("交往记录信息")
public class Record implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "record_id", type = IdType.AUTO)
    @ApiModelProperty("交往记录id")
    private Integer recordId;
    @ApiModelProperty("客户id")
    private Integer customerId;
    @ApiModelProperty("交往时间")
    private LocalDate recordDate;
    @ApiModelProperty("交往地点")
    private String recordPlace;
    @ApiModelProperty("交往概要")
    private String recordOutline;
    @ApiModelProperty("交往备注")
    private String recordRemarks;
    @ApiModelProperty("交往详情")
    private String recordDetails;
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE,update = "now()")
    private LocalDateTime updateTime;
    @ApiModelProperty("修改次数")
    @Version
    private Integer version;


}
